package question3;

public class DaXiang extends EatMilk{
    private String color;

    public DaXiang() {
    }

    public DaXiang(String name, String sex, String age, String milktype, String color) {
        super(name, sex, age, milktype);
        this.color = color;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }
    @Override
    public void eat(){
        System.out.println("大象吃香蕉");
    }
    @Override
    public void fedMilk(){
        System.out.println("大象站着喂奶");
    }
    public void sleep(){
        System.out.println("大象站着睡觉");
    }
}
